/**
 * 
 */
package com.kahweh.ngphoto.bean;

import javax.jdo.annotations.IdGeneratorStrategy;
import javax.jdo.annotations.IdentityType;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;

import com.google.appengine.api.datastore.Blob;
import com.google.appengine.api.datastore.Key;
import com.google.appengine.api.datastore.Link;

/**
 * @author kahweh
 *
 */
@PersistenceCapable(identityType = IdentityType.APPLICATION)
public class Image {

	@PrimaryKey
	@Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
	private Key key;
	@Persistent
	private Link URL;
	@Persistent
	private ImageSize size;
	@Persistent
	private Blob imageData;

	/**
	 * 
	 */
	public Image() {
		// TODO Auto-generated constructor stub
	}

	public Key getKey() {
		return key;
	}
	public void setKey(Key key) {
		this.key = key;
	}
	public ImageSize getSize() {
		return size;
	}

	public void setSize(ImageSize size) {
		this.size = size;
	}

	public Blob getImageData() {
		return imageData;
	}

	public void setImageData(Blob imageData) {
		this.imageData = imageData;
	}

	public Link getURL() {
		return URL;
	}

	public void setURL(Link uRL) {
		URL = uRL;
	}
}
